package org.ymjava.medical.db.AllPackage.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 权限表
 * 
 * @author zhy
 * @email ${email}
 * @date 2020-04-03 15:53:44
 */
@Table(name = "sys_perm")
public class SysPerm implements Serializable {
	private static final long serialVersionUID = 1L;
	
	    //权限值，shiro的权限控制表达式
    @Id
    private String pval;
	
	    //父权限id
    @Column(name = "parent")
    private String parent;
	
	    //权限名称
    @Column(name = "pname")
    private String pname;
	
	    //权限类型：1.菜单 2.按钮 3.接口 4.特殊
    @Column(name = "ptype")
    private Integer ptype;
	
	    //是否叶子节点
    @Column(name = "leaf")
    private Integer leaf;
	
	    //创建时间
    @Column(name = "created")
    private Date created;
	
	    //修改时间
    @Column(name = "updated")
    private Date updated;
	

	/**
	 * 设置：权限值，shiro的权限控制表达式
	 */
	public void setPval(String pval) {
		this.pval = pval;
	}
	/**
	 * 获取：权限值，shiro的权限控制表达式
	 */
	public String getPval() {
		return pval;
	}
	/**
	 * 设置：父权限id
	 */
	public void setParent(String parent) {
		this.parent = parent;
	}
	/**
	 * 获取：父权限id
	 */
	public String getParent() {
		return parent;
	}
	/**
	 * 设置：权限名称
	 */
	public void setPname(String pname) {
		this.pname = pname;
	}
	/**
	 * 获取：权限名称
	 */
	public String getPname() {
		return pname;
	}
	/**
	 * 设置：权限类型：1.菜单 2.按钮 3.接口 4.特殊
	 */
	public void setPtype(Integer ptype) {
		this.ptype = ptype;
	}
	/**
	 * 获取：权限类型：1.菜单 2.按钮 3.接口 4.特殊
	 */
	public Integer getPtype() {
		return ptype;
	}
	/**
	 * 设置：是否叶子节点
	 */
	public void setLeaf(Integer leaf) {
		this.leaf = leaf;
	}
	/**
	 * 获取：是否叶子节点
	 */
	public Integer getLeaf() {
		return leaf;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreated(Date created) {
		this.created = created;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreated() {
		return created;
	}
	/**
	 * 设置：修改时间
	 */
	public void setUpdated(Date updated) {
		this.updated = updated;
	}
	/**
	 * 获取：修改时间
	 */
	public Date getUpdated() {
		return updated;
	}
}
